﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using LM.Negocio.Objetos;

namespace LM.Repositorios.Maps
{
    public class DiaSemanaItemTabelaPrecosMap : EntityTypeConfiguration<DiaSemanaItemTabelaPreco>
    {
        public DiaSemanaItemTabelaPrecosMap()
        {
            this.HasKey(c => c.Id);
            this.Property(c => c.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity).HasColumnName("Id");

            this.Property(c => c.DiaDaSemana).HasColumnName("DiaSemana").IsRequired();
            this.Property(c => c.DiaDaSemana).HasColumnName("PeriodoDia").IsRequired();

            this.ToTable("DIASEMANAITEMTABELA");
        }
    }
}
